<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:icecore="http://www.icefaces.org/icefaces/core"
	xmlns:ace="http://www.icefaces.org/icefaces/components"
	xmlns:ice="http://www.icesoft.com/icefaces/component">

<h:head>
	<h:outputStylesheet library="css" name="style.css" />
	<h:outputScript name="jsf.js" library="javax.faces" target="head" />
</h:head>

<h:body>

	<h:form>
		<ice:dataTable id="idTabOprComnicaGecorServicos"
			value="#{dataTableRowEditing.listaComunicacao}" var="comunicado"
			style="width:950px;text-align: center" resizable="true" width="100%"
			cellspacing="1" cellpadding="5"
			columnClasses="  colEsquerdaNormal,
                               colCentradaNormal,
                               colCentradaNormal,
                               colEsquerdaNormal,
                               colCentradaNormal"
			columnWidths="40%,20%,20%,20%,20%">

			<ice:column styleClass="campos">
				<f:facet name="header">Número Msg SisBB</f:facet>
                                #{comunicado.ctlMsgCmcoAno}#{comunicado.ctlMsgCmco}
                        </ice:column>

			<ice:column>
				<f:facet name="header">Data do Envio</f:facet>
				<h:outputText value="#{comunicado.dtEnvoMsgCmco}">
					<f:convertDateTime pattern="dd/MM/yyyy" />
				</h:outputText>
			</ice:column>

			<ice:column>
				<f:facet name="header">Data Prazo</f:facet>
				<h:outputText value="#{comunicado.dtPz}">
					<f:convertDateTime pattern="dd/MM/yyyy" />
				</h:outputText>
			</ice:column>

			<ice:column>
				<f:facet name="header">Observação</f:facet>
                                #{comunicado.obs}
                        </ice:column>

			<ice:column>
				<f:facet name="header">Tipo</f:facet>
                                #{comunicado.cdTpCmco.dcrTpCmco}
                        </ice:column>

			<ice:column>
				<f:facet name="header">Responsável</f:facet>
                                #{comunicado.cdChvUsuReg}
                        </ice:column>

			<ice:column>
				<f:facet name="header">Editar</f:facet>
				<h:commandButton image="resources/imagens/1407620069_pencil.png.png"
					alt="Editar" title="Editar" style="height: 11px; width: 11px;"
					action="#{dataTableRowEditing.editItem}">
					<f:setPropertyActionListener target="#{dataTableRowEditing.toEdit}"
						value="#{comunicado.idCmcoOgm}" />
				</h:commandButton>
			</ice:column>

		</ice:dataTable>

	</h:form>

	<br />

	<h:form>
		<h:panelGrid columns="25">

			<h:outputLabel for="ctlMsgCmcoAno" value="Ano:" />
			<h:inputText id="ctlMsgCmcoAno"
				value="#{dataTableRowEditing.ajztCaoOprSeldCmcoOgmx.ctlMsgCmcoAno}"
				required="true" maxlength="4">
			</h:inputText>
			<h:message for="ctlMsgCmcoAno" />

			<h:outputLabel for="ctlMsgCmco" value="Número Msg SisBB:" />
			<h:inputText id="ctlMsgCmco"
				value="#{dataTableRowEditing.ajztCaoOprSeldCmcoOgmx.ctlMsgCmco}"
				required="true" maxlength="8">
			</h:inputText>
			<h:message for="ctlMsgCmco" />

			<h:outputLabel for="display" value="Data do Envio:" />
			<h:outputText id="display"
				value="#{dataTableRowEditing.ajztCaoOprSeldCmcoOgmx.dtEnvoMsgCmco}">
				<f:convertDateTime type="date" dateStyle="short"
					timeZone="America/Sao_Paulo" pattern="dd/MM/yyyy" />
			</h:outputText>
			<ice:selectInputDate id="popupCalendar"
				value="#{dataTableRowEditing.ajztCaoOprSeldCmcoOgmx.dtEnvoMsgCmco}"
				renderAsPopup="true" renderMonthAsDropdown="false"
				renderYearAsDropdown="false">
				<f:convertDateTime type="date" dateStyle="short"
					timeZone="America/Sao_Paulo" pattern="dd/MM/yyyy" />
			</ice:selectInputDate>

			<h:outputLabel for="obs" value="Observação:" />
			<h:inputTextarea id="obs"
				value="#{dataTableRowEditing.ajztCaoOprSeldCmcoOgmx.obs}"
				required="true" maxlength="250">
			</h:inputTextarea>
			<h:message for="obs" />

			<h:outputLabel for="cdTpCmco" value="cdTpCmco" />
			<h:selectOneMenu id="chassisIn"
				value="#{dataTableRowEditing.ajztCaoOprSeldCmcoOgmx.cdTpCmco}"
				required="true">
				<f:selectItem itemValue="" itemLabel="-- Selecione --" />
				<f:selectItem itemValue="5" itemLabel="Enviado" />
				<f:selectItem itemValue="10" itemLabel="Não Enviado" />
				<f:selectItem itemValue="15" itemLabel="Aguardando NT" />
			</h:selectOneMenu>
			<h:message for="cdTpCmco" />

			<f:facet name="footer">
				<h:commandButton value="Salvar"
					actionListener="#{dataTableRowEditing.submitItem}" />
			</f:facet>
		</h:panelGrid>
	</h:form>

	<br />


</h:body>
</html>